<!DOCTYPE html>
<html>
<head>
	<%= require('html-loader!./layout/common-head.html') %>
	<title>商品修改</title>
</head>
<body>
	<%= require('html-loader!./layout/nav.html') %>
	<div class="w">
		<div class="t-edit">
			<h2>内容编辑</h2>
		</div>
		<div class="n-edit">
			<div class="m-form">
				<div class="fmitem">
					<label class="fmlab">标题：</label>
					<div class="fmipt">
						<input class="ipt" id="title" autofocus placeholder="2-80字符">
					</div>
				</div>
				<div class="fmitem">
					<label class="fmlab">摘要：</label>
					<div class="fmipt">
						<input class="ipt" id="summary" class="fmipt" placeholder="2-140字符">
					</div>
				</div>
				<div class="fmitem">
					<label class="fmlab">图片：</label>
					<div class="fmipt">
						<input name="pic" type="radio" value="url" checked>图片地址
						<input name="pic" type="radio" value="file">本地上传
					</div>
				</div>
				<div class="fmitem">
					<label class="fmlab"></label>
					<div class="fmipt" id="urlUpload" style="display: block;">
						<input type="text" class="ipt" name="online-pic-url" id="online-pic-url" placeholder="图片地址">
					</div>
					<div class="fmipt" id="fileUpload" style="display:none">
						<input name="file" type="file" id="fileUp">
						<button class="btn-mini" id="localPicload">上传</button>
					</div>
				</div>
				<div class="fmitem">
					<label class="fmlab">详情：</label>
					<div class="fmipt">
						<textarea class="ipt ipt-detail" id="detail" id="detail" rows="10" placeholder="2-1000个字符"></textarea>
					</div>
				</div>
				<div class="fmitem">
					<label class="fmlab">价格：</label>
					<div class="fmipt">
						<input class="ipt ipt-price" id="price">&nbsp;元
					</div>
				</div>
				<div class="fmitem">
					<label class="fmlab">库存：</label>
					<div class="fmipt">
						<input class="ipt ipt-stock" id="stock">
					</div>
				</div>
				<div class="fmitem">
					<label class="fmlab"></label>
					<div class="fmipt"><button class="btn" type="submit" id="public-sub">发布</button></buttoon></div>
				</div>


			</div>
			<span class="imgpre">
				<img id="imgpre">
			</span>
		</div>
	</div>

	<%= require('html-loader!./layout/footer.html') %>
</body>
</html>